//
//  IGiGalleryDSlaveEquApi.m
//  jingdongfang
//
//  Created by BOE on 2017/9/11.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import "IGiGalleryDSlaveEquApi.h"

@interface IGiGalleryDSlaveEquApi()

@property (nonatomic, copy) NSString *macId;                         ///>设备的MacID
@property (nonatomic, copy) NSString *uid;                           ///>从绑用户的id
@property (nonatomic, assign) IGiGalleryDeleteSlaveEquType type;     ///>接口类型

@end

@implementation IGiGalleryDSlaveEquApi
    
- (id)initWithMacId:(NSString *)macId slaveUid:(NSString *)uid type:(IGiGalleryDeleteSlaveEquType)type {
    self = [super init];
    if (self) {
        _macId = macId;
        _uid = uid;
        _type = type;
    }
    return self;
}
    
- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}
    
- (NSString *)requestUrl {
    return [self url];
}
    
- (id)requestArgument {
    return [self customArgument];
}
    
- (BOOL)isNeedHub {
    return NO;
}

- (id)customArgument {
    if (_type == IGiGalleryDeleteSlaveEquTypeSlave) {
        return @{
                 @"macId": _macId,
                 @"uId":_uid
                 };
    } else {
        return @{
                 @"macId": _macId,
                 @"uId":_uid,
                 @"type":_typeRejecttype
                 };
    }
}
    
- (NSString *)url {
    if (_type == IGiGalleryDeleteSlaveEquTypeSlave) {
        return @"equ/deleteSlaveUser";
    } else {
        return @"equ/deleteSlaveEqu";
    }
}

@end


@implementation IGiGalleryDSlaveEquModel
    
@end

@implementation IGiGalleryDSlaveEquResp

@end
